#ifndef RELATIONITEM_H
#define RELATIONITEM_H

#include <QVector>
#include "Tag.h"

class LinkItem : public SharedDomObject
{
public:
    LinkItem(QDomElement source);
    QString path();
    quint64 size();
    QString qs();
    void setPath(const QString &path);
    void setSize(quint64 size);
    void setQs(const QString &qs);

    static QString tagName() { return "link"; }
};

// class LinkList
typedef ElementList<LinkItem> LinkList;

class RelationItem : public SharedDomObject
{
public:
    RelationItem(QDomElement source);
    int id();
    QString log();
    void setId(int id);
    void setLog(const QString &log);
    RelationItem clone();

    LinkList links();
    SimpleTagList simpleTags();

    static QString tagName() { return "relation"; }

};

// class RelationList
typedef ElementList<RelationItem> RelationList;

#endif // RELATIONITEM_H
